import request from '@/utils/request'
const prefix = '/md_sys_user'

export function getPersonInCharge(data) {
  return request({
    url: `${prefix}/getPersonInCharge`, method: 'post', data
  })
}

export function getUserListByOrg(data) {
  return request({
    url: `${prefix}/getUserListByOrg`, method: 'post', data
  })
}

export function getUserProfile(data) {
  return request({
    url: `${prefix}/getUserProfile`, method: 'post', data
  })
}

export function getUserList(data) {
  return request({
    url: `${prefix}/getUserList`, method: 'post', data
  })
}

export function queryUserList(data) {
  return request({
    url: `${prefix}/queryUserList`, method: 'post', data
  })
}

export function createUser(data) {
  return request({
    url: `${prefix}/createUser`, method: 'post', data
  })
}

export function updateUser(data) {
  return request({
    url: `${prefix}/updateUser`, method: 'post', data
  })
}

export function updateUserStatus(data) {
  return request({
    url: `${prefix}/updateUserStatus`, method: 'post', data
  })
}

export function deleteUser(id) {
  return request({
    url: `${prefix}/deleteUser/${id}`, method: 'delete'
  })
}

export function getUserPassword(data) {
  return request({
    url: `${prefix}/getUserPassword`, method: 'post', data
  })
}

export function changeUserPassword(data) {
  return request({
    url: `${prefix}/changeUserPassword`, method: 'post', data
  })
}

export function changeProfilePassword(data) {
  return request({
    url: `${prefix}/changeProfilePassword`, method: 'post', data
  })
}

export function updateUserProfile(data) {
  return request({
    url: `${prefix}/updateUserProfile`, method: 'post', data
  })
}
